package v1

import (
	"github.com/gogf/gf/v2/frame/g"
	"tFilm4/internal/model"
)

type CreateCommentReq struct {
	g.Meta  `path:"/comment/create" method:"post" tags:"CommentService" summary:"添加评论"`
	UserId  int64  `v:"required#请输入用户ID"`
	MovieId int64  `v:"required#请输入电影编号"`
	Content string `v:"required#请输入评论内容"`
}
type CreateCommentRes struct {
}

type GetCommentByMovieIdReq struct {
	g.Meta  `path:"/comment/movieId" method:"post" tags:"CommentService" summary:"查询电影评论"`
	MovieId int64 `v:"required#请输入电影编号"`
}

type GetCommentByMovieIdRes struct {
	CommentInfos []model.CommentInfo `json:"list"`
	Count        int                 `json:"count"`
}
